<?php $this->render("header.php");?>
<div class="list_box">
   <div class="list_bor">
    <div class="site_nav w_980">
        你现在的位置：<a href="<?php echo $this->baseUrl;?>/" title="首页">首页</a> > <span class="c_ora_red">搜索</span>
    </div>
	<div class="w_986">
        
        <div class="list_seach_main">
        	<div class="seach_plate_bg main_top"></div>
            <div class="content seach_plate_bg">
            	<div class="seach_content">
            	<form method="post" action="<?php echo $this->url($this->baseUrl, "search");?>">
                    <div class="seach_list_box">
                    	<div class="seach_input">
                            <div class="input_box f_l icon_all">
                                <input name="query" type="text" value="<?php echo htmlspecialchars($this->query);?>" class="f_l icon_all" />
                            </div>
                            <input name="btn" value="" type="submit" class="f_l head_btn icon_all" />
                            <div class="clear"></div>
                        </div>
                    </div>
                        </form>
<?php
foreach ($this->list as $v){
	print <<<EOT
                    <dl class="dl_title_txt_list clear_box">
                        <dt><a href="{$v['url']}" title="{$v['stitle']}" target="_self">{$v['title']}</a></dt>
                        <dd class="dd_txt link_ora_red">{$v['content']}<a href="{$v['url']}" title="[详细]" target="_self">【详细】</a></dd>
                    </dl>
EOT;
}
?>
                    
                    <div class="list_page_box">
                    	<div class="list_page f_r">
<?php
$ext = '&query=' . urlencode($this->query);
$indexurl =$this->url($this->baseUrl,'', '', 'p=1' . $ext);
$lasturl = $this->url($this->baseUrl, '', '', 'p=' . $this->page['totalpage'] . $ext);

print <<<EOT
<a href="{$indexurl}" title="1"><i>&lt;&lt;</i>第一页</a>
EOT;
foreach ($this->pagenum as $v) {
    $url =$this->url($this->baseUrl, "", '', 'p=' . $v . $ext);
    if ($v != $this->page['nowp'])
        echo '<a href="' . $url . '" title="' . $v . '">' . $v . '</a>';
    else
        echo '<span class="selected">' . $v . '</span>';
}
print <<<EOT
<a href="{$lasturl}" title="{$this->page['totalpage']}">末 页<i>&gt;&gt;</i></a>
EOT;
?>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
            	<div class="clear"></div>
            </div>
            <div class="seach_plate_bg main_bot"></div>
        </div>
        <div class="clear"></div>
    </div>
  </div>

</div>
<?php $this->render("footer.php");?>
</body>
</html>